   <style>
.mouseoverBag { background: #abcdef; }
.table_border td{border-top:1px #000 solid;border-right:1px #000 solid;margin:0px;width:120px;height:40px;min-height:40px;} 
.table_border{border-bottom:1px #000 solid;margin:0px;margin-top:0px;margin-left:0px;border-collapse:collapse;padding:0;} 
 .table_bordertime td{border-top:1px #000 solid;border-right:1px #000 solid;border-left:1px #000 solid;margin:0px;width:120px;height:40px;min-height:40px;}
.table_bordertime{border-bottom:1px #000 solid;margin:0px;margin-top:0px;margin-left:0px;border-collapse:collapse;padding:0;} 
</style>
                                        

        <g:set var="entityName" value="${message(code: 'plan.label', default: 'Plan')}" />
                <div>
                    <table>
                        <tbody>
                            <tr> 
                              <td style="margin:0;padding:0;">
                                <table class="table_bordertime">
                                    <tr>
                                        <td>
                                         <b>上课时间</b>
                                        </td>
                                    </tr>
                                    <%
                                    restTimeList.each{
                                    %>
                                    <tr>
                                        <td>
                                            ${it.startHour}:
                                            ${it.startMinute}
                                            ~
                                            ${it.endHour}:
                                            ${it.endMinute}
                                        </td>
                                    </tr>
                                    <%}%>
                                </table>
                                </td>
                                
                            <g:each in="${['一','二','三','四','五']}" status="i" var="weekInstance">
                                <td style="margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;">
                                <table class="table_border">
                                <tr>
                                <td>
                                 <b>周${weekInstance}</b>
                                </td>
                                </tr>
                                        <%
                                restTimeList.each{aRestTime ->
                                    def flag=false
                                %>
                                     <tr> 
                                <%
                                    planList.each{aPlan ->
                                        if(aPlan.week == (i+1).toString() && aPlan.restTime.id == aRestTime.id){
                                %>
                                            <td class="everyCourse ${aPlan.course}" course="${aPlan.course}">
                                                <font color="red">${aPlan.course}</font><br>${'('+aPlan.classes+')'}
                                            </td>
                                <%
                                        flag=true
                                        }
                                    }
                                    if(!flag){
                                %>
                                           <td class="everyCourse">
                                                &nbsp;&nbsp;
                                            </td>
                                <%
                                    }
                                %>
                                     </tr> 
                                <%
                                }
                                %>

                                     

                                </table>
                                </td>
                            </g:each>
                            </tr> 
                                       
                        </tbody>
                    </table>
                </div> 
                <div class="buttons">
                <input type="button" value="返回" onclick="javascript:history.go(-1)">
            </div>